﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.ObjectBuilder2;

namespace Simon.Unity.Proxy
{
   internal interface IParentGetterPolicy : IBuilderPolicy
   {
      object Parent { get; }
   }
   internal class ParentGetterPolicy : IParentGetterPolicy
   {
      private object _parent;

      public ParentGetterPolicy(object parent)
      {
         _parent = parent;
      }

      #region IParentGetterPolicy Members
      public object Parent
      {
         get { return _parent; }
      }
      #endregion
   }
}
